package com.huli.service;

import com.huli.domain.Orders;
import com.huli.param.OrdersByOwnerParam;
import com.huli.param.OrdersByUserParam;
import com.huli.param.OrdersCreateParam;

import java.math.BigDecimal;
import java.util.List;

public interface OrdersService {
    BigDecimal howMuch(OrdersCreateParam param);

    void newOrders(OrdersCreateParam param);

    Long getOrdersTimeout(int ordersId);

    void delOrders(int ordersId);

    List<Orders> getUserOrders(OrdersByUserParam param);

    List<Orders> getOwnerOrders(OrdersByOwnerParam param);

    void payOrders(int ordersId);

    void backOrders(int ordersId);

    void finishOrders(int ordersId);


    List<Orders> getByGarage(int garageId);

    Orders getOrders(int orders);

    List<Orders> getByCarportId(int carportId);

    int getUserIdByOrdersId(int ordersId);

    void postMoney(BigDecimal money, int propertyId, int ownerId);
}
